<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ include file="/pages/common/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>广东工业大学招生办后台管理</title>
<script>
	function check(){
		var article = document.getElementById("title");
		var url = document.getElementById("url");
		if(article.value == ""){
			alert("标题不能为空！");
			return false;
		}
		if(url.value == ""){
			alert("链接不能为空！");
			return false;
		}
		return true;
	}
	
</script>
</head>

<body>
	<form action="special-site-admin!save.action" enctype="multipart/form-data" method="post" name="form" onsubmit="return check()">
	<s:if test="id!=null">
	<input type="hidden" name="id" value="${id }"/>
	</s:if>
	<table>
	<tr>
	<td></td><td style="color:red;">链接格式：http://wwww.baidu.com</td>
	</tr>
	<tr>
					<td>所放置专题名称：</td>
					 <td><s:if test="id!=null">${entity.special.name}
					 </s:if>
					<s:else>
					<select name="spec_id" style="width:100%">
						<s:iterator value="specialList">
							<option value="${id}">${name}</option>
						</s:iterator>
						</select>
					</s:else></td>
				</tr>
		<tr>
			<td>标题：</td>
			<td><input type="text" name="entity.title" id="title" style="width:400px;" value="${entity.title }"/></td>
		</tr>
		<tr>
			<td>链接：</td>
			<td><input type="text" name="entity.url" id="url"style="width:400px;" value="${entity.url }"/></td>
		</tr>
		<tr>
			<td></td>
			<td><input type="submit" value="提交" /></td>
		</tr>
	</table>
	</form>
</body>
</html>
